package com.bosch.in.rtp1.ept.constant;

import java.util.Calendar;

/**
 * Class is used to define necessary constants. 
 * @author TPR1HC
 *
 */
public interface CommonConstants {
	/* constant used for combining holdcode filter values into one String value which will be saved to database*/
	String DELIMITER = "~::~";
	/* constant used for combining holdcode value and hold text */
	String SEPARATOR = "+=+";
	/* total number of hold code user can input */
	int HC_TOTAL = 20;
	/* delimite to separate order of HoldCodeFilter identifier.*/
	String COMMA = ",";
	
	int CHOOSE_ALL = -1;
	
	// Dynamic query condition place holder
	String DYNAMIC_CONDITION = "<DYN_CON>"; 
	
	// Order by place holder
	String ORDER_BY = "<ORDERBY>";
	
	// Common date format
	String FULL_DATE_FORMAT = "dd-MMM-yyyy HH:mm:ss";
	
	String SHORT_DATE_FORMAT_FOR_REPORT = "dd-MMM-yyyy";
	
	String SHORT_DATE_FORMAT = "yyyy-MM-dd";
	
	// Common number format
	String NUMBER_FORMAT = "###.#";
	
	int CURRENT_YEAR			= Calendar.getInstance().get(Calendar.YEAR);
	int CURRENT_MONTH			= Calendar.getInstance().get(Calendar.MONTH);
	int NUM_OF_LAST_YEAR		= 2;
	int NUM_OF_NEXT_YEAR		= 0;
	
	// request parameter 
	static final String COMMAND = "cmd";
	// parameter value which is used to identify HoldCode page
	String HC_FILTER = "hcfilter";
	// parameter value which is used to identify HoldCode page
	String HC_RECLASS = "hcreclsfilter";
	
	// labels which will be presented at the X-Axis of finished recipes chart
	String MONTH_LIST[]		= {"All Month"
									,"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"};
	int START_MONTH_INDEX 	= 0;
	int END_MONTH_INDEX 	= 12;
	
	// Title of Active hold chart
	String ACTIVE_HOLD_TITLE = "Active Hold Diagram";
	
	// Cache name of HoldCode values
	String HOLD_CODE_CACHE_KEY = "all_hold_codes";
	
	// First text of select box
	String SELECT_ALL = "SELECT";
	
	// Lot status frozen column list constant
	String LOT_STATUS_FRZ_COLS = "lot_status_frz_cols";
	
	// Released Hold frozen column list constant
	String RELEASED_HOLD_FRZ_COLS = "released_hold_frz_cols";
	
	// Red color condition to set background for duration cell
	String RED_COLOR_CON = "red_color_con";
	
	// yellow color condition to set background for duration cell
	String YELLOW_COLOR_CON = "yellow_color_con";
	
	int NAVIGATION_WIDTH	= 240;
	
	int DEFAULT_BUFFER_SIZE = 10*1024;
	
	String LINK_LIST = "linkList";
}
